package se.webbzon.oschi01.sound;

public interface FiniteSound extends Sound {
	
	/** Sets whatever the sound is looping or not. **/
	public void setLooping(boolean looping);
	
	/** Returns true if the sound is currently looping. **/
	public boolean isLooping();
	
	/** Returns the length of the sound in microseconds. If the length
	 * of the sound could not be read then -1 is returned. **/
	public long length();
	
	/** Returns the current position of the sound in microseconds. If the 
	 * position of the sound could not be read then -1 is returned. **/
	public long pos();
	
	/** Sets the current position of the sound in microseconds. If the
	 * seeking was successful then true is returned. **/
	public boolean seek(long time);

}
